package com.prathiba.jumbledword;

import java.util.LinkedList;

public class GameScoreCalculator {

	/**
	 * Calculates the final score of the game after all the words in the
	 * dictionary has been guessed.
	 * 
	 * @param gameUnits
	 * @return int count
	 */
	public int calculateGameScore(LinkedList<GameUnit> gameUnits) {
		int count = 0;
		for (GameUnit g : gameUnits) {
			count = count + g.getValidGuessCount();
		}
		return count;
	}
}
